package top.cluski.feieprint.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table("maiyatian_orders")
public class MaiyatianOrdersEntity {

    @Id(keyType = KeyType.Auto)
    private Integer id;

    @Column("maiyatian_order_id")
    private Long maiyatianOrderId;

    @Column("youzan_order_id")
    private String youzanOrderId;

    @Column(value = "create_time", onInsertValue = "now()")
    private LocalDateTime createTime;

    public static MaiyatianOrdersEntity create() {
        return new MaiyatianOrdersEntity();
    }
}